<?php

namespace app\models;

use Yii;
use yii\base\Model;

/**
 * ContactForm is the model behind the contact form.
 */
class SxyconfigForm extends Model
{
    public $businessid;//商户id
    public $key;//密钥

    /**
     * @return array the validation rules.
     */
    public function rules()
    {
        return [
            [['businessid', 'key'], 'required'],
            ['businessid', 'string', 'max' => 32],
            ['key', 'string', 'max' => 256],
        ];
    }

    /**
     * @return array customized attribute labels
     */
     public function attributeLabels()
     {
         return [
             'businessid' => '商户号',
             'key' => '密钥',
         ];
     }

}
